<template>
	<view class="my-search-container" :style="{'background-color': bkcolor}">
		<view class="my-search-box" :style="{'border-radius': 18 + 'px'}" @click="searchInput">
			<uni-icons type="search" size="17"></uni-icons>
			<text class="placeholder">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my_search",
		data() {
			return {
				
			};
		},
		props: {
			bkcolor: {
				type: String,
				default: '#007aff'
			},
			radius: {
				type: Number,
				default: 18
			}
		},
		methods: {
			searchInput() {
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
	.my-search-container {
		// background-color: #c00000;
		height: 45px;
		padding: 0 10px;
		display: flex;
		align-items: center;
	}
	
	.my-search-box {
		height: 30px;
		width: 100%;
		// border-radius: 18px;
		background-color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.placeholder {
		font-size: 15px;
		margin-left: 5px;
	}
</style>
